package com.xxx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xxx.enums.StatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
 /**
 * ;
 * @author : http://www.chiner.pro
 * @date : 2024-11-16
 */
 @Data
 @AllArgsConstructor
 @NoArgsConstructor
public class Explosive implements Serializable,Cloneable{
    /**  */

    @TableId(type = IdType.AUTO)
    private Long id ;
    /** 标题 */
    private String title ;
    /** 数量 */
    private Long amount ;
    /** 时间 */

    @JsonFormat(pattern = "yyyy/MM/dd")
    private LocalDate createTime ;
    /** 0启用 1禁用 */
    private StatusEnum status ;

    private String img;
    /** 0否 1是 */
    @TableLogic
    private Integer deleted ;

}